#include "VSSkelectonActor.h"
#include "VSGraphicInclude.h"
#include "VSStream.h"
using namespace VSEngine2;
IMPLEMENT_RTTI(VSSkelectonActor,VSEntityActor)
BEGIN_ADD_PROPERTY(VSSkelectonActor,VSEntityActor)
REGISTER_PROPERTY(m_pSkelectonMeshResource,SkelectonMeshResource,VSProperty::F_SAVE_LOAD_CLONE)
END_ADD_PROPERTY
IMPLEMENT_INITIAL_BEGIN(VSSkelectonActor)
IMPLEMENT_INITIAL_END
VSSkelectonActor::VSSkelectonActor()
{

}
VSSkelectonActor::~VSSkelectonActor()
{

}
void VSSkelectonActor::ProcessInput(unsigned int uiInputType,unsigned int uiEvent,unsigned int uiKey,int x, int y, int z)
{

}
void VSSkelectonActor::LoadedEvent()
{
	if (m_pSkelectonMeshResource)
	{
		//m_pNode = (VSNode *)VSObject::CloneCreateObject(m_pSkelectonMeshResource->GetResource());

		m_pNode = VS_NEW VSSkelectonMeshNode();
		m_pNode->Clone(m_pSkelectonMeshResource->GetResource(),0);
	}
}
void VSSkelectonActor::AddChildActor(VSActor * pActor,const VSUsedName & Name)
{
	VSEntityActor::AddChildActor(pActor);
	
	
}
